package com.projectmanagement.server.controller;


import com.projectmanagement.server.dao.entity.bo.PageObject;
import com.projectmanagement.server.service.serviceImpl.PlanService;
import com.projectmanagement.server.service.serviceImpl.StatisticsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @description
 * @author 星空梦语
 * @date 2021/3/9 下午4:08
 */
@Controller
@RequestMapping("/statistics")
public class StatisticsController {

    @Resource
    private StatisticsService statisticsService;


    /**
     * @description
     * @author 星空梦语
     * @date 2021/3/9 下午4:08
     */
    @ResponseBody
    @RequestMapping(value = "/queryAll",produces = "application/json;charset=utf-8")
    public String queryAll(@RequestBody PageObject pageObject) throws Exception {
         return statisticsService.queryAll(pageObject);
    }





    /**
     * @description
     * @author 星空梦语
     * @date 2021/3/9 下午4:08
     */
    @ResponseBody
    @RequestMapping(value = "/queryGanttData",produces = "application/json;charset=utf-8")
    public String queryGanttData(@RequestBody PageObject pageObject) throws Exception {
        return statisticsService.queryGanttData(pageObject);
    }






}
